package com.mac.pojo;

import java.sql.Timestamp;

/**
 * 文章实体类
 */
public class Articles {

    // 文章id
    private Integer articleId;

    // 文章标题
    private String title;

    // 文章内容
    private String content;

    // 作者id
    private Integer authorId;

    // 发布时间
    private Timestamp publishDate;

    // 发布状态
    private String status;

    public Articles() {
    }

    public Articles(Integer articleId, String title, String content, Integer authorId, Timestamp publishDate, String status) {
        this.articleId = articleId;
        this.title = title;
        this.content = content;
        this.authorId = authorId;
        this.publishDate = publishDate;
        this.status = status;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Integer authorId) {
        this.authorId = authorId;
    }

    public Timestamp getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Timestamp publishDate) {
        this.publishDate = publishDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Articles{" +
                "articleId=" + articleId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", authorId=" + authorId +
                ", publishDate=" + publishDate +
                ", status='" + status + '\'' +
                '}';
    }
}
